import request from '@/utils/request'

// 查询电子考勤列表
export function listEleAttend(query) {
  return request({
    url: '/hr/eleAttend/list',
    method: 'get',
    params: query
  })
}

// 查询电子考勤详细
export function getEleAttend(id) {
  return request({
    url: '/hr/eleAttend/' + id,
    method: 'get'
  })
}

// 新增电子考勤
export function addEleAttend(data) {
  return request({
    url: '/hr/eleAttend',
    method: 'post',
    data: data
  })
}

// 修改电子考勤
export function updateEleAttend(data) {
  return request({
    url: '/hr/eleAttend',
    method: 'put',
    data: data
  })
}

// 删除电子考勤
export function delEleAttend(id) {
  return request({
    url: '/hr/eleAttend/' + id,
    method: 'delete'
  })
}
